﻿using System;

namespace Hongsh.Pay.Client.Proxy.Http {
    // Token: 0x0200002C RID: 44
    public class HttpResult {
        // Token: 0x1700008F RID: 143
        // (get) Token: 0x06000155 RID: 341 RVA: 0x00002E4C File Offset: 0x0000104C
        // (set) Token: 0x06000156 RID: 342 RVA: 0x00002E54 File Offset: 0x00001054
        public int Code { get; set; }

        // Token: 0x17000090 RID: 144
        // (get) Token: 0x06000157 RID: 343 RVA: 0x00002E5D File Offset: 0x0000105D
        // (set) Token: 0x06000158 RID: 344 RVA: 0x00002E65 File Offset: 0x00001065
        public string Description { get; set; }

        // Token: 0x06000159 RID: 345 RVA: 0x00002E6E File Offset: 0x0000106E
        public HttpResult() {
            //Class15.cwcZ3SWztHroi();
            Code = 200;
            Description = "OK";
            //base..ctor();
        }

        // Token: 0x0600015A RID: 346 RVA: 0x00002E91 File Offset: 0x00001091
        public HttpResult(int code, string description = null) {
            //Class15.cwcZ3SWztHroi();
            //this..ctor();
            Code = code;
            Description = description;
        }

        // Token: 0x0600015B RID: 347 RVA: 0x00002EAC File Offset: 0x000010AC
        public virtual void WriteReponse(HttpContext ctx) {
            ctx.Response.Code = Code;
            ctx.Response.Description = Description;
        }

        // Token: 0x0600015C RID: 348 RVA: 0x00002ED0 File Offset: 0x000010D0
        static HttpResult() {
            //Class15.cwcZ3SWztHroi();
            Ok = new HttpResult();
            NoFound = new HttpResult(404, null);
        }

        // Token: 0x04000099 RID: 153
        public static readonly HttpResult Ok;

        // Token: 0x0400009A RID: 154
        public static readonly HttpResult NoFound;
    }
}
